<script setup lang="ts">
import '@/style/Manage_CTF.css'
import {formInline, onSubmit} from "@/static/Manage/manage_ctf";

</script>

<template>
  <div class="manage-all">
    <div class="upload-web">
      <span>上传Web题目：</span>

      <el-form :model="formInline" class="demo-form-inline">

        <el-form-item label="题目名称（title）：">
          <el-input v-model="formInline.title" clearable size="large"  />
        </el-form-item>

        <el-form-item label="题目描述（description）：">
          <el-input v-model="formInline.description" clearable size="large" />
        </el-form-item>

        <el-form-item label="环境地址（ip）：">
          <el-input v-model="formInline.ip" clearable size="large" />
        </el-form-item>

        <el-form-item label="奖励点数（points）：">
          <el-input v-model="formInline.points" clearable size="large" />
        </el-form-item>

        <el-form-item label="奖励经验（exp）：">
          <el-input v-model="formInline.exp" clearable size="large" />
        </el-form-item>

        <el-form-item label="题目答案（flag）：">
          <el-input v-model="formInline.flag" clearable size="large" />
        </el-form-item>





        <el-form-item>
          <el-button type="primary" @click="onSubmit">提交</el-button>
        </el-form-item>
      </el-form>


    </div>








  </div>
</template>

<style>
.demo-form-inline .el-input {
  --el-input-width: 220px;
}

.demo-form-inline .el-select {
  --el-select-width: 220px;
}
</style>